<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<META name="keywords" content="$!config.keywords" />
<META name="description" content="$!config.description" />
<title>控制面板-修改个人信息</title>
<link rel="stylesheet" href="skin/gold/css/reset.css" type="text/css" media="screen" />
<link rel="stylesheet" href="skin/gold/css/style.css" type="text/css" media="screen" />
<script type="text/javascript" src="res/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="res/js/common.js"></script>
<script type="text/javascript" src="skin/gold/js/html5.js"></script>
<script type="text/javascript" src="skin/gold/js/ikeke.js"></script>
<!--[if lte IE 6]>
<script type="text/javascript" src="skin/gold/js/DD_belatedPNG.js"></script>
<script type="text/javascript">
DD_belatedPNG.fix('a,a:hover,div,span,img,li');
</script>
<![endif]-->
<script>
function doSave()
{
if(doCheck())
{
if(EditForm.cid.value!="")EditForm.parameter.value="update";
EditForm.submit();
}
}
function doCheck()
{

if(EditForm.email.value=="")
{
alert("用户电子邮箱不能为空！");
EditForm.email.focus();
return false;
}
return true;
}
function doRefresh(obj,file)
{
if(file!="")
{
eval(obj+".value=file");
alert(EditForm.photo.value);
photoShow.innerHTML="<img src="+file+" align=absmiddle>";
}
}
function doUpload()
{
upFrame.EditForm.parentObj.value="EditForm.photo";
upFrame.doUpload();
}
</script>
</head>
<body>
<div id="container">
	<div id="asideback"></div>
	<div id="asideswitch"><div class="button"></div></div>
	#parse('/inc/left.htm')
	
	<div id="rightbody"><!-- 主体部分 -->
		<section id="wrapper">
			#parse('/inc/head.htm')
			<table class="update-top">
				<tr><td>控制面板 > 修改个人资料信息</td></tr>
			</table>
			<table class="update1-h h yh">
				<tr><th>修改个人资料信息</th></tr>
			</table>
			<table class="update1">
			<form name="EditForm" method="post" action="bbsuser.do">
				<input type="hidden" name="parameter" value="add">
				<input type="hidden" name="cid"   value="$!cid">
				<tr class="first"><th width="120">用户名：</th><td>$!username</td></tr>
				<tr><th>照片：</th><td>
					<input name="photo" type="hidden" id="photo" value="$!photo">
					#if($photo)<img src="$!photo" align="absmiddle" onload="javascript:if(this.width>120)this.width=120" />#end
					<iframe name="upFrame" style=" vertical-align:middle" ID="upFrame" src="/bbs/bbsUpload.do" frameborder=0 scrolling=no width="180" height="25"></iframe><input type="button" name="u-submit" value="上传" onClick="doUpload();" /><span>注：头像图片尺寸为：80x80px</span></td></tr>
				<tr><th>Email地址：</th><td><input type="text" name="email" class="normal" value="$!email" /><span class="red">*</span></td></tr>
				<tr><th>性别：</th><td><select name="sex" class="normal"><option #if($sex.equals("男")) selected #end>男</option><option #if($sex.equals("女")) selected #end>女</option></select><span class="red">*</span></td></tr>
				<tr><th>手机：</th><td><input type="text" name="tel" class="normal" value="$!tel" /></tr>
				<tr><th>您的身份：</th><td><select name="status" class="normal"><option value="">业主</option><option value="">其它</option></select><span class="red">*</span></td></tr>
				<tr><th>QQ/MSN：</th><td><input type="text" name="qq" class="normal" value="$!qq" /></tr>
				<tr><th>简介：</th><td><textarea cols="60" rows="5" name="intro" class="normal">$!intro</textarea><span class="red">*</span></td></tr>
				<tr><th>个性签名：</th><td><textarea cols="60" rows="3" name="sign" class="normal">$!sign</textarea></td></tr>
				<tr class="last"><td></td><td><input type="button" name="submit" class="s" value="" onClick="doSave();" /><input type="reset" name="goback" class="back" value="" onClick="history.go(-1);" /></td></tr>
			</table>
		</section>
	</div>
	
	#parse('/inc/foot.htm')
</div>
</body>
</html>